-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PERF cache FFTs of various quantities #216
Conversation
This one is ready for review @esheldon! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also have a speedup test for metacal, asserting it is faster by X, to justify the change.
The speedup for the pre-PSF moments is a factor of 2 from ~10ms to ~5ms. This assumes you have the same PSF which is, in general, true for metadetect measurements. |
what about for metacal? Is there an important and predictable speedup for this caching? |
I did not put in the test yet sorry. In my measurements for running color-dependent metadetection, it was ~30% or so. |
The speedup comes from caching the galsim interpolated image object of the original image. Its FFT gets cached internally by galsim and this saves a bunch of time in generating the different metacal images at each color. |
I need to increase the digits on the jacobian repr for this one. |
ok @esheldon This PR is ready to go. I added a test showing the ~30% gains from caching for mdet-sized images. |
This PR adds caching of FFTs of various images in order to speed up the code.